package io;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

public class OswDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("456.txt");
        OutputStreamWriter osw = new OutputStreamWriter(fos);
        osw.write("夜空中最亮的星，能否听清，那仰望的人，心底的孤独和叹息。");
        System.out.println("写出完毕");
        osw.close();
    }
}
